﻿// lesson2.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//

#include <iostream>
using namespace std;

class Point {
public:
	// x坐标
	int x;
	int y;
	void init() {
		x = 0;
		y = 0;
	}
	Point() :x(0), y(0) {}
	Point(int a, int b) {
		x = a;
		y = b;
	}
	~Point() {

	}
	void output() {
		cout << x << endl << y << endl;
	}
	void output(int a, int b) {
		x = a;
		y = b;
	}
};

int main()

{
	Point pt(3, 3);
	//pt.x = 4;
	//pt.y = 5;
	//pt.init();
	//Point pt2(10, 20);
	//pt2.output();
	pt.output(5, 5);
	pt.output();
}

